package org.shop.service;

import java.util.List;
import java.util.Map;
import org.shop.entity.Orders;
import org.shop.service.base.BaseService;

public interface OrdersService extends BaseService<Orders, Long>{
	
	/**
	 * 通过订单号获取订单信息
	 */
	public Orders getOrder(Map<String, Object> paramMap);
	
	/**
	 * 分页获取商家订单
	 * @param paramMap
	 * @return
	 */
	public Map<String, Object> getShopOrderList(Map<String, Object> paramMap);
	/**
	 * 分页获取供应商订单
	 * @param paramMap
	 * @return
	 */
	public Map<String, Object> getSupplierOrderList(Map<String, Object> paramMap);
	
	/**
	 * 获取用户订单和商品
	 * @param paramMap
	 * @return
	 */
	public List<Map<String,Object>> getUserOrderList(Map<String, Object> paramMap);
	
	/**
	 * 根据用户Id获取商品的完成与未完成订单
	 * @param paramMap
	 * @return
	 */
	public List<Map<String,Object>> getUnFinishAndFinishGoodsList(Map<String, Object> paramMap);
	/**
	 * 用户获取订单数量
	 * @param userId
	 * @return
	 */
	public int getUsersOfOrderCount(Long userId);
	
	/**
	 * 通过订单号查询商品信息和订单信息
	 * @param orderNo
	 * @return
	 */
	public Map<String,Object> getOrderAndGoodsInfoByOrderNo(String orderNo);
}
